//
//  GlobalConfig.m
//  leo
//
//  Created by 张旭 on 16/1/2.
//  Copyright © 2016年 mdx. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "GlobalConfig.h"

@interface GlobalConfig ()

@end

@implementation GlobalConfig

-(float)scaleX {
    return [[UIScreen mainScreen] bounds].size.width / DEFAULT_SCREEN_WIDTH;
}

-(float)scaleY {
    return [[UIScreen mainScreen] bounds].size.height / DEFAULT_SCREEN_HEIGHT;
}

+(GlobalConfig *)getInstance {
    static GlobalConfig *instance;
    static dispatch_once_t predicate;
    dispatch_once(&predicate, ^{
        instance = [[self allocWithZone:NULL] init];
    });
    return instance;}

@end